-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use external package to wrap React
imports to circumvent non-existing functions in RSC
#11175
Conversation
…ng functions in RSC
🦋 Changeset detectedLatest commit: e8fddb7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
/release:pr |
A new release has been made for this PR. You can install it with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing as you've followed through all the various threads to get to this conclusion, I see no reason we shouldn't go with it. Thanks for all the diligent work you've done to find an optimal solution given where we are with the library today!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all your work on moving this forward!
Co-authored-by: Jerel Miller <[email protected]>
This would be one possible solution for the problem report we got in #11167
I really hope we'll get another solution than this, but I'll already open the PR to see if our package CI tests work with this.
Review Note:
Please also review https://github.com/phryneas/rehackt
https://github.com/phryneas/rehackt/blob/main/index.js
- we could wrap thatrequire
call there in atry..catch
block, which would allow our main entry point to be imported even if our consumers wouldn't havereact
installed.(also,
release-3.9
needs to be brought up to speed withmain
, right now it's at the last release we had)Checklist: